<template>
  <MyModal ref="myModal" :title="title">
    <template #content>
      <div style="display: grid; place-items: center"></div>
    </template>
  </MyModal>
  <el-button @click='showModal'>按钮</el-button>
</template>

<script setup >
import { ref, reactive } from "vue";

import MyModal from "@/components/dialog2";

const myModal = ref();

const showModal = () => {
  myModal.value.showModal();
};

defineExpose({
  showModal,
});

let title = ref("x管家登陆");

const myState = reactive({
  smsSendFlag: false,
  time: 60,
});

let labelCol = { span: 4 };

const formState = ref({
  phone: "",
  code: "",
});



// 登录

</script>
